extends Node2D
@onready var character = $"../Character"
@onready var rightmargin = $rightmargin
@onready var leftmargin = $leftmargin
@onready var topmargin = $topmargin

func _physics_process(delta):
	GR.screen_position=position

func _ready():
	pass 


func _on_topmargin_body_entered(body):
	position.y-=324
	


func _on_rightmargin_body_exited(body):
	position.x+=576


func _on_leftmargin_body_exited(body):
	position.x-=576



	


